package com.ruyi.afterdemo.service.impl;

import com.ruyi.afterdemo.comm.BaseServiceImpl;
import com.ruyi.afterdemo.comm.CommRepository;
import com.ruyi.afterdemo.dao.MDiaryPlanRepository;
import com.ruyi.afterdemo.po.MDiaryPlan;
import com.ruyi.afterdemo.service.MDiaryPlanService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Created by Administrator on 2018/10/12.
 */
@Service
public class MDiaryPlanServiceImpl extends BaseServiceImpl<MDiaryPlan, Integer> implements MDiaryPlanService {
    @Resource
    private MDiaryPlanRepository mDiaryPlanRepository;

    public CommRepository<MDiaryPlan, Integer> getRepository() {
        return mDiaryPlanRepository;
    }
    public Integer getIdenty(MDiaryPlan a) {
        return a.getId();
    }

}
